<template>
	<view class="taskDetail">
		<view class="detailBox">
			<image :src="pageData.image" mode="" style="width: 200rpx;height: 200rpx;border-radius: 8rpx;">
			</image>
			<view class="leftBox">
				<view class="title">
					{{pageData.title}}
				</view>

				<view class="time">
					考试时间:{{pageData.strart_time}}
				</view>
			</view>
		</view>
		<view class="heng"></view>

		<view class="remarkBox">
			<view class="titleBox">
				<view class="line"></view>
				<view class="titleText">
					考试规则
				</view>
			</view>

			<view class="content">
				<u-parse :content="pageData.content"></u-parse>
			</view>

		</view>



	</view>
</template>

<script>
	import {
		examinationDetails
	} from "@/api/api.js"
	export default {
		data() {
			return {
				count: 5,
				value: 3,
				pageId: "",
				pageData: {},
			}
		},
		onLoad(options) {
			this.pageId = options.id
			this.handleGetexaminationDetails()
		},
		methods: {
			async handleGetexaminationDetails() {
				let res = await examinationDetails({
					id: this.pageId
				})
				// console.log("详情", res)
				this.pageData = res.data
			},

		}
	}
</script>

<style scoped lang="scss">
	.taskDetail {
		width: 100%;
		height: 100%;
		background-color: #ffffff;

		.detailBox {
			width: 100%;
			height: 260rpx;
			padding: 30rpx;
			box-sizing: border-box;
			display: flex;
			align-items: center;

			// border-bottom: 1rpx solid #EEEEEE;
			.leftBox {
				height: 200rpx;
				margin-left: 20rpx;
				display: flex;
				flex-direction: column;
				justify-content: space-between;

				.title {
					width: 470rpx;
					font-size: 30rpx;
					font-family: PingFang SC, PingFang SC;
					font-weight: 400;
					color: #212121;
					line-height: 35rpx;
				}

				.time {
					margin-top: 80rpx;
					font-size: 28rpx;
					font-family: PingFang SC, PingFang SC;
					font-weight: 400;
					color: #999999;
					line-height: 33rpx;
				}
			}
		}

		.heng {
			width: 690rpx;
			height: 1rpx;
			background-color: #EEEEEE;
			margin: 0 auto;
		}

		.remarkBox {
			padding: 0 30rpx;
			box-sizing: border-box;

			.titleBox {
				margin-top: 30rpx;
				display: flex;
				align-items: center;

				.line {
					width: 8rpx;
					height: 28rpx;
					background: #255A9B;
					border-radius: 2000rpx 2000rpx 2000rpx 2000rpx;
					margin-right: 20rpx;
				}

				.titletext {
					font-size: 28rpx;
					font-family: PingFang SC, PingFang SC;
					font-weight: 00;
					color: #212121;
					line-height: 33rpx;
				}
			}

			.content {
				font-size: 28rpx;
				font-family: PingFang SC, PingFang SC;
				font-weight: 400;
				color: #666666;
				line-height: 33rpx;
				margin-top: 26rpx;
			}
		}



	}
</style>